package com.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.entity.Menu;

@Repository
public class MenuDAO extends BaseDAO<Menu> {
	
	public static final String PARENT_ID = "parentId";
	public static final String SORT = "sort";

	public MenuDAO() {
		super(Menu.class);
	}
	public List<Menu> findByParent(int id){
		return this.findByProperty(PARENT_ID, id, SORT);
	}
}
